<?php 
    $path = SystemProperties::$path;
	$next_page = min($totalPage, ($curPage + 1));
	$last_page = max(1, ($curPage - 1));
    $pager = "<a href='javascript:goFanli({$last_page});'><img src='{$path}/image/new/goprev.gif' border='0' /></a><b>&nbsp;{$curPage}/{$totalPage}&nbsp;</b><a href='javascript:goFanli({$next_page});'><img src='{$path}/image/new/gonext.gif' border='0'/></a>";
 ?>
<div>
    <a href="http://bangpai.taobao.com/group/thread/14309974-258673653.htm" target="_blank"><img src="../../webroot/image/try_taobao_header.jpg?v=1" /></a>
</div>
<div class="clearfix" style="margin-top: 10px;">
	<div style="float: left;width:590px;">
		<ul class="cyFanliWrapper clearfix">
			<?php 
			if ($fanli_items) { 
				foreach($fanli_items as $f){
			?>
			<li> 
				<input type="hidden" class="jWeiboText" value="<?php echo urlencode($f['weibo_text'].' '.$f['taobao_url']);?>" />
				<input type="hidden" class="jWeiboPic" value="<?php echo urlencode($f['pic']);?>" />
				<input type="hidden" class="jFanliId" value="<?php echo $f['id'];?>" />
				<a onclick="javascript:record_click(this.getParent(), $('jNeedSendWeibo'));" class="img jClick" title="<?php echo $f['title'];?>" href="<?php echo $f['taobao_url'];?>" target="_blank"><img src="<?php echo $f['pic'];?>" /></a>
				<a onclick="javascript:record_click(this.getParent(), $('jNeedSendWeibo'));" class="title jClick" title="<?php echo $f['title'];?>" href="<?php echo $f['taobao_url'];?>" target="_blank"><?php echo $f['title'];?></a>
				<a onclick="javascript:record_click(this.getParent(), $('jNeedSendWeibo'));" class="button jClick" title="<?php echo $f['title'];?>" href="<?php echo $f['taobao_url'];?>" target="_blank"><img src="<?php echo SystemProperties::$path;?>image/share_button.gif"/></a>
			</li>	
			<?php } } ?>
		</ul>
		<div class="applytab">
			<span class="applytab_pager" ><?=$pager?></span>
		</div>
	</div>
	<div style="float: right">
		<a href="http://i.try8.info/tshare/widget.php?action=rd&top_tshare_url=http%3A%2F%2Fi.try8.info%2Ftshare%2Fbuyer.php" target="_blank"><img src="../../webroot/image/try_taobao_ad.jpg?v=1" /></a>
		<br/>
		<?php if ('sina' == SystemProperties::$platform) { ?>
		<div style="text-align:center;margin:10px 0;">
			<?php 
				if (!isset($_COOKIE['fanliSendWeibo']) || $_COOKIE['fanliSendWeibo']){
					$fanliSendWeibo = true;
				} else {
					$fanliSendWeibo = false;
				}
			?>	
			<input type="checkbox" name="needSendWeibo" <?php echo ($fanliSendWeibo?'checked="true"':'');?> onclick="javascript:save_fanli_sendweibo($('jNeedSendWeibo'));" id="jNeedSendWeibo"/>一键分享至微博
		</div>
		<?php } ?>
		<a href="http://i.try8.info/tshare/widget.php?action=rd&top_tshare_url=http%3A%2F%2Fi.try8.info%2Ftshare%2Fseller.php%3Faction%3Djoinkxzb%26from%3D<?php echo SystemProperties::$platform;?>" target="_blank"><img src="../../webroot/image/try_taobao_join.jpg?v=1" /></a>
	</div>
</div>
